package myBatis.domain;

public class User {

    private Long id;
    private String sname;

    public User() {}
    public User(Long id, String sname) {
        this.id = id;
        this.sname = sname;
    }

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }
    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                '}'+"\n";
    }
}
